import java.util.Scanner;

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main1 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int[] arr = new int[n + 1];
        for (int i = 1; i <= n; i++) {
            arr[i] = i;
        }
        boolean flag = true;
        for (int i = 3; i <= n; i++) {
            if (flag) {
                //将三个数的最小值放在中间
                int minIndex = getMinIndex(arr, i - 2, i - 1, i);
                int midIndex = i - 1;
                swap(arr, minIndex, midIndex);
                flag = false;
            } else {
                //将三个数的最大值放在中间
                int maxIndex = getMaxIndex(arr, i - 2, i - 1, i);
                int midIndex = i - 1;
                swap(arr, maxIndex, midIndex);
                flag = true;
            }
        }
        for (int i = 1; i <= n; i++) {
            System.out.print(arr[i] + " ");
        }
        System.out.println();
    }

    public static int getMaxIndex(int[] arr, int i1, int i2, int i3) {
        int ret = i1;
        if (arr[i2] > arr[ret] ) {
            ret = i2;
        }
        if (arr[i3] > arr[ret]) {
            ret = i3;
        }
        return ret;
    }

    public static int getMinIndex(int[] arr, int i1, int i2, int i3) {
        int ret = i1;
        if (arr[i2] < arr[ret] ) {
            ret = i2;
        }
        if (arr[i3] < arr[ret]) {
            ret = i3;
        }
        return ret;
    }

    public static void swap(int[] arr, int i1, int i2) {
        int tmp = arr[i1];
        arr[i1] = arr[i2];
        arr[i2] = tmp;
    }
}